
const TOKEN_KEY = 'pc_content_token'
const NAME_KEY = 'pc_content_name'
const PERSON_NAME_KEY = 'pc_content_person_name'

export function getToken() {
  return window.localStorage.getItem(TOKEN_KEY)
}

export function setToken(token) {
  return window.localStorage.setItem(TOKEN_KEY, token)
}

export function removeToken() {
  return window.localStorage.removeItem(TOKEN_KEY)
}

export function getName() {
  return window.sessionStorage.getItem(NAME_KEY)
}

export function setName(name) {
  window.sessionStorage.setItem(NAME_KEY, name)
}

export function removeName() {
  window.sessionStorage.removeItem(NAME_KEY)
}

export function getPersonName() {
  return window.sessionStorage.getItem(PERSON_NAME_KEY)
}

export function setPersonName(personName) {
  window.sessionStorage.setItem(PERSON_NAME_KEY, personName)
}

export function removePersonName() {
  window.sessionStorage.removeItem(PERSON_NAME_KEY)
}
